home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group03a.txt / 000035_icon-group-sender_Wed Mar 12 12:51:32 2003.msg < prev    next >
Internet Message Format  |  2003-12-22  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id h2CJoBg04037
  4.     for icon-group-addresses; Wed, 12 Mar 2003 12:50:11 -0700 (MST)
  5. Message-Id: <200303121950.h2CJoBg04037@baskerville.CS.Arizona.EDU>
  6. Date: 12 Mar 2003  16:41:41 GMT
  7. From: rjhare@ed.ac.uk
  8. Subject: Re: Sorting lists
  9. To: swampler@noao.edu
  10. cc: icon-group@cs.arizona.edu
  11. Errors-To: icon-group-errors@cs.arizona.edu
  12. Status: RO
  13.  
  14. > If you do have a list of lists of strings, you *can* use
  15. > sortf(X,i) instead of sort() to sort by the first element in
  16. > each of the sublists, so:
  17. >     b := sortf(a, 1)
  18. > would do what you want in the above example.
  19.  
  20. That's it! Thanks very much - the book is at home and I use the internal sort
  21. command so rarely that I simply couldn't remembe - thanks again!
  22.  
  23. Roger
  24.  
  25. ------------------------------------------------------------------------------
  26.                   `Your wild oats have come home to roost.'                   
  27. ------------------------------------------------------------------------------
  28.